<template>
  <a-config-provider :locale="zhCN">
    <div id="subapp-container">
      <router-view />
    </div>
  </a-config-provider>
</template>

<script>
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import { defineComponent } from 'vue';
import { useLoginInforStore } from '@/store/login';

export default defineComponent({
  setup() {
    const loginInforStore = useLoginInforStore();
    loginInforStore.Initialize();
    return {
      zhCN,
    };
  },
});
</script>

<style lang="less">
#app {
  font-family: 'Avenir', '-apple-system', 'PingFang SC', 'Hiragino Sans GB',
    'Noto Sans CJK SC', 'Microsoft YaHei', 'SimHei', sans-serif, system-ui;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  height: 100%;
}

#subapp-container {
  height: 100%;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
